import request from '@/utils/request'
// 查询跟进列表
export function recordList(query) {
  return request({
    url: '/followup_record/recordList',
    method: 'get',
    params: query
  })
}
// 跟进列表详情
export function followupDetail(id) {
  return request({
    url: '/followup_record/'+id,
    method: 'get',
  })
}
// 添加跟进记录
export function addRecord(data) {
  return request({
    url: '/followup_record/addRecord',
    method: 'post',
	data: data
  })
}
// 编辑跟进记录时获取详情
export function eidtFollowupDetail(id) {
  return request({
    url: '/followup_record/details/'+id,
    method: 'get',
  })
}
// 编辑跟进记录
export function editRecord(data) {
  return request({
    url: '/followup_record/editRecord',
    method: 'put',
	data: data
  })
}
//添加评论
export function addFollowupComment(data) {
  return request({
    url: '/followup_evaluation',
    method: 'post',
	data: data
  })
}
//跟进记录导出
export function exportRecord(query) {
  return request({
    url: '/followup_record/exportRecord',
    method: 'get',
	params: query
  })
}

// 跟进计划列表
export function followupRecordList(query) {
  return request({
    url: '/followup_record/list',
    method: 'get',
	params:query
  })
}
// 添加跟进计划
export function addFollowupRecord(data) {
  return request({
    url: '/followup_record',
    method: 'post',
	data:data
  })
}